<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>物联利浪-点餐系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- Loading Bootstrap -->
    <link href="<%=path%>/resource/diancan/css/vendor/bootstrap.min.css" rel="stylesheet">

    <!-- Loading Flat UI -->
    <link href="<%=path%>/resource/diancan/css/flat-ui.css" rel="stylesheet">
    <link href="<%=path%>/resource/diancan/css/my.css" rel="stylesheet">

    <link rel="shortcut icon" href="<%=path%>/resource/diancan/img/favicon.ico">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
      <script src="<%=path%>/resource/diancan/js/vendor/html5shiv.js"></script>
      <script src="<%=path%>/resource/diancan/js/vendor/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
  	
    <div class="container body">
        <div class="login-screen">
        	<h1 class="demo-logo">
         		<div class="logo"></div>
          		物联利浪
          		<small>点餐系统</small>
        	</h1>
          <div class="login-form">
          <form action="<%=path%>/diancan/index" method="post">
            <div class="form-group" id="error_alert">
            	<div class="alert alert-danger alert-dismissible" role="alert">
  					<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  					<strong>错误!</strong> ${error }
				</div>
            </div>
            <div class="form-group">
              <input type="text" class="form-control login-field" placeholder="输入你的名字" name="username" id="login-name">
              <label class="login-field-icon fui-user" for="login-name"></label>
            </div>
            <button type="submit" class="btn btn-primary btn-lg btn-block">点餐</button>
            <!--<a class="login-link" href="#">Lost your password?</a>-->
          </form>
          </div>
        </div>
    </div>

	<div class="container footer">
        <div class="row">
        	<h4 class="center">©2014 物联利浪科技 研发部技术支持</h4>
        </div>
      </div>
    <!-- jQuery (necessary for Flat UI's JavaScript plugins) -->
    <script src="<%=path%>/resource/diancan/js/vendor/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="<%=path%>/resource/diancan/js/flat-ui.min.js"></script>
	<script type="text/javascript">
		$(function(){
			if("${error}" == ""){
				$("#error_alert").hide();
			}
		});
	</script>
  </body>
</html>
